package juc.atomic;


import java.util.concurrent.atomic.AtomicInteger;

public class AtomicIntegerDetailsTest2 {
    public static void main(String[] args) {
        AtomicInteger i = new AtomicInteger(10);
        boolean flag = i.compareAndSet(12, 20);
        System.out.println(i.get());
        System.out.println(flag);
    }
}
